【CodinGame】趣味算法 CLASH OF CODE - 20240724
创始人
2024-12-18 00:35:08
0

在这里插入图片描述
在这里插入图片描述

import sys import math  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  n = int(input()) for i in range(n):     t, c = [int(j) for j in input().split()]     if c>14 or t<=0 or t>101:         print("GLaDOS you filthy liar!")     else:         print("That's a cake!")     # print("That's a cake! or GLaDOS you filthy liar!")  


在这里插入图片描述

import sys import math  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  x, y = [int(i) for i in input().split()] n = int(input()) for i in range(n):     inputs = input().split()     _dir = inputs[0]     dist = int(inputs[1])     if _dir == 'N':         y += dist     elif _dir == 'S':         y -= dist     elif _dir == 'E':         x += dist     elif _dir == 'W':         x -= dist  print(x,y)  


在这里插入图片描述
在这里插入图片描述

import sys import math from math import log2  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  n = int(input())  if log2(n) == int(log2(n)):     print(int(log2(n))) else:     print(-1)   


在这里插入图片描述

import sys import math  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  problem = input()    if eval(problem.replace('?', '+').replace('=', '==')):     print("+") if eval(problem.replace('?', '-').replace('=', '==')):     print("-") if eval(problem.replace('?', '*').replace('=', '==')):     print("*") if eval(problem.replace('?', '/').replace('=', '==')):     print("/") 

eval不安全,看情况使用

END

相关内容

热门资讯

科技介绍!微乐小程序免费黑科技... 微乐小程序免费黑科技是一款专注玩家量身打造的游戏记牌类型软件,在微乐小程序免费黑科技这款游戏中我们可...
三分钟了解!微乐江苏小程序游戏... 三分钟了解!微乐江苏小程序游戏破解下载,乐乐围棋入门辅助,原先有开挂辅助神器(讲解有挂)1、下载安装...
新手必备!多乐游戏辅助脚本ht... 新手必备!多乐游戏辅助脚本http,欢乐茶馆辅助,通报开挂辅助神器(有挂方略);无需打开直接搜索薇:...
教程攻略!打哈儿小程序辅助,微... 教程攻略!打哈儿小程序辅助,微信呢小程序辅助器脚本,原本有开挂辅助神器(有挂透明挂);亲,微信呢小程...
必看攻略!多乐辅助在哪里可以下... 必看攻略!多乐辅助在哪里可以下载,大菠萝辅助器,教会辅助开挂平台(真是有挂);无需打开直接搜索加薇1...
我来教教你!牵手跑辅助,开心泉... 我来教教你!牵手跑辅助,开心泉州免费辅助,原先有开挂辅助软件(有挂规律);无需打开直接搜索薇:136...
最新技巧!winner辅助软件... 兴动互娱辅助开挂教程视频分享装挂详细步骤在当今的网络游戏中,兴动互娱辅助作为一种经典的娱乐方式,吸引...
教程攻略!海南骨牌辅助器免费,... 【亲,海南骨牌辅助器免费 这款游戏可以开挂的,确实是有挂的,很多玩家在这款海南骨牌辅助器免费中打牌都...
安装程序教程!余音游戏决战十三... 安装程序教程!余音游戏决战十三水,小闲川南宜宾辅助,细节辅助挂(有挂细节);无需打开直接搜索微信(1...
玩家必看分享!中至辅助插件最简... 玩家必看分享!中至辅助插件最简单三哥步骤,牛魔辅助,原本有开挂辅助软件(有挂秘笈);无需打开直接搜索...