AOJ 0148
・問題リンク Candy and Class Flag
・コメント
このソースは一時的なものですww
こんな汚いので終わらせられませんwww辻褄合わせで無理やり丸め込めましたw
すみません。。
・ソース
#include<iostream> using namespace std; int main() { long n; while(cin>>n){ int ans=1; for(int i=1;;i++){ if(n<=1){//抜ける条件 ans=i; break; } if(i>39){ i=1; } n--; } if(ans==40)ans=1; if(ans<10){ cout<<"3C0"<<ans<<endl; }else{ cout<<"3C"<<ans<<endl; } } return 0; }